home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20000114-20000217 / 000121_news@columbia.edu _Sun Jan 23 12:27:15 2000.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id MAA02221
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Sun, 23 Jan 2000 12:27:15 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id MAA28848
  7.     for kermit.misc@watsun.cc.columbia.edu; Sun, 23 Jan 2000 12:08:35 -0500 (EST)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Subject: Re: How to run dos commands on client from unix host?
  11. Date: 23 Jan 2000 17:08:35 GMT
  12. Organization: Columbia University
  13. Message-ID: <86fcij$s5d$1@newsmaster.cc.columbia.edu>
  14. To: kermit.misc@columbia.edu
  15.  
  16. In article <86euo8$hq9$1@nnrp1.deja.com>,  <dubal@my-deja.com> wrote:
  17. : We have a dos machine running dos kermit316. It logs into a unix host
  18. : over tcp/ip lan. We are able to print transperantly on the dos printer
  19. : (LPT1) using esc[5i and esc[4i seq while connected.
  20. : The client has 2 printers. Is there any way to print on the 2nd printer
  21. : using perhaps another seq or macro or something?
  22. The terminals that Kermit emulates do not define a way to select different
  23. printers by sending different escape sequences, so Kermit can't do it either.
  24. But you can tell MS-DOS Kermit to:
  25.  
  26.   set printer lpt2
  27.  
  28. (or whatever) to select the current active printer.  If you want to switch
  29. back and forth between printers, you can have the host send APC (Application
  30. Program Control) escape sequences:
  31.  
  32.   <APC>set printer xxx<ST>
  33.  
  34. where <APC> is Esc followed by underscore (_), and ST (String Terminator) is
  35. Esc followed by backslash (\).  Before this can work you probably need to
  36. tell MS-DOS Kermit to:
  37.  
  38.   set terminal apc on
  39.  
  40. or even:
  41.  
  42.   set terminal apc unchecked
  43.  
  44. : Is there a similar esc seq that will allow us to run dos commands?
  45. :
  46. As you might imagine, this can be dangerous, but it can be done with APC
  47. (with TERMINAL APC set to UNCHECKED).  At your own risk.  More info in
  48. Section 10 of your KERMIT.UPD file.
  49.  
  50. - Frank